﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prototype {
    class Calendar {

        private List<Appointment> appointments;
        private List<Schedule> schedules;
        private static ProgrammingTeam pt;

        public static void Main(string[] args){
                pt  = new ProgrammingTeam();     
        }

        /// <summary>
        /// Returns the pending appointments
        /// </summary>
        /// <returns>Appointment</returns>
        public List<Appointment> getPendingApp() {
            //TODO: Return pending appointments
            return null;
        }
        /// <summary>
        /// Marks appointment a
        /// </summary>
        /// <returns></returns>
        public Appointment selectAppointment(List<Appointment> appoinments, int id) {
            //TODO: Select the appointment
            return null;
        }

        public void assignProgrammerToAppointment() {
            
            //Get and select the pending appoinment
            List<Appointment> appointments = getPendingApp();
            int Aid = 1;//user input;
            Appointment a = selectAppointment(appointments,Aid);

            //Get and select avail programmers
            List<Programmer> programmers = pt.getAvailableProgrammers();

            //TODO: Loop though this for adding more programmers to the same appointment
            int Pid = 1;//userinput 
            Programmer p = pt.selectProgrammer(programmers, Pid);

            //Assign hte programmer to the appointment
            a.assignProgrammer(p);
        }
    }
}
